﻿/**
 * InScript regular expression rules table for Sanskrit script
 * According to CDAC's "Enhanced InScript Keyboard Layout 5.2"
 * @author Junaid P V ([[user:Junaidpv]])
 * @date 2010-12-26
 * License: GPLv3, CC-BY-SA 3.0
 */
if(tr_sa_inscript== undefined) var tr_sa_inscript = {};
else tr_sa_inscript = {};
tr_sa_inscript.text = "InScript";
tr_sa_inscript.description = "InScript layout for Sanskrit";
// Normal rules
tr_sa_inscript.rules = [
['X', '', 'ँ'],
['x', '', 'ं'],
['_', '', 'ः'],
['D', '', 'अ'],
['E', '', 'आ'],
['F', '', 'इ'],
['R', '', 'ई'],
['G', '', 'उ'],
['T', '', 'ऊ'],
['\\+', '', 'ृ'],
['S', '', 'ए'],
['W', '', 'ऐ'],
['A', '', 'ओ'],
['Q', '', 'औ'],
['k', '', 'क'],
['K', '', 'ख'],
['i', '', 'ग'],
['I', '', 'घ'],
['U', '', 'ङ'],
['\\;', '', 'च'],
['\\:', '', 'छ'],
['p', '', 'ज'],
['P', '', 'झ'],
['\\}', '', 'ञ'],
["'", '', 'ट'],
['"', '', 'ठ'],
['\\[', '','ड'],
['\\{', '','ढ'],
['C', '', 'ण'],
['l', '', 'त'],
['L', '', 'थ'],
['o', '', 'द'],
['O', '', 'ध'],
['v', '', 'न'],
['h', '', 'प'],
['H', '', 'फ'],
['y', '', 'ब'],
['Y', '', 'भ'],
['c', '', 'म'],
['\\?', '','य'],
['j', '', 'र'],
['n', '', 'ल'],
['N', '', 'ळ'],
['b', '', 'व'],
['M', '', 'श'],
['\\<', '','ष'],
['m', '', 'स'],
['u', '', 'ह'],
['\\]', '','़'],
['e', '', 'ा'],
['f', '', 'ि'],
['r', '', 'ी'],
['g', '', 'ु'],
['t', '', 'ू'],
['\\=', '','ृ'],
['\\\\', '', 'ॄ'],
['s', '', 'े'],
['w', '', 'ै'],
['a', '', 'ो'],
['q', '', 'ौ'],
['d', '', '्'],
['\\|', '', 'ॠ'],
['/', '', 'य'],
['\\>', '', '।'],
['0', '','०'],
['1', '','१'],
['2', '', '२'],
['3', '', '३'],
['4', '', '४'],
['5', '', '५'],
['6', '', '६'],
['7', '', '७'],
['8', '', '८'],
['9', '', '९'],
['\\@', '', 'ॅ'],
['\\#', '','्र'],
['\\$', '','र्'],
['\\%', '','ज्ञ'],
['\\^', '','त्र'],
['\\&', '', 'क्ष'],
['\\*', '', 'श्र'],
['\\(', '', '\u200D'],
['\\)', '', '\u200C']
];

// Extended layout for InScript. Works in Firefox only
tr_sa_inscript.extended_keyboard = true;
tr_sa_inscript.rules_x = [
['F', '', 'ऌ'],
['\\>', '','ऽ'],
['X', '', 'ॐ'],
['e', '', '\0951'],
['d', '', '\u0952'],
['R', '', 'ॡ'],
['f', '', 'ॢ'],
['r', '', 'ॣ'],
['\\.', '', '॥'],
['\\@', '','ॅ'],
['4', '', '₹']
];
